package com.xt.website.util;

import com.github.pagehelper.PageInfo;
import com.xt.website.po.CategoryExt;
import com.xt.website.po.CategorySecond;
import com.xt.website.po.News;
import lombok.Data;

import java.util.List;

/**
 * @Author: jiangyu
 * @Date: 2019/8/19 10:54
 * @Description:自定义分页实体，为展现类目宣传语，进而继续封装
 */
@Data
public class MyPageInfo<T> extends PageInfo {

    public MyPageInfo(List<T> list) {
        super(list);
    }

    public MyPageInfo(List<T> list, int navigatePages) {
        super(list, navigatePages);
    }

    private CategoryExt<CategorySecond> categoryExt;//一级类目扩展类，包含下属二级类目集合
    private CategorySecond categorySecond;

    //前一个新闻对象
    private News prevNews;
    //后一个新闻对象
    private News nextNews;
}
